Skip to content

refactor(UI):Comment Display Card#1206

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:card
Jul 8, 2025
Merged

refactor(UI):Comment Display Card#1206
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:card

Conversation

@Ceron-CSS

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jul 8, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 10:03am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Refactors the MR and issue detail pages to use a new comment card design, adds a “Checks” tab, and extracts reusable UI components for timeline items and timestamps.

  • Adds a “Checks” tab with its icon in the MR detail view
  • Extends conversation data with username and updated_at, updating hooks and page types
  • Extracts HandleTime, UserLinkByName, and action-specific timeline item components (CloseItem, ReopenItem, MergedItem)

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pages/[org]/mr/[id].tsx Added “Checks” tab, ChecklistIcon, updated Conversation fields, and moved UnderlinePanels require
hooks/issues/useGetIssueDetail.ts Updated conversations interface to include updated_at and username
components/MrView/components/UserLinkByName.tsx New component for linking usernames
components/MrView/components/HandleTime.tsx New timestamp formatter with tooltip
components/MrView/TimelineItems.tsx Switched to CloseItem/ReopenItem/MergedItem, replaced icons
components/MrView/ReopenItem.tsx New timeline item for reopen actions
components/MrView/CloseItem.tsx New timeline item for close actions
components/MrView/MergedItem.tsx New timeline item for merge actions
components/MrView/MRComment.tsx Refactored comment card UI, removed antd
components/Issues/IssueDetailPage.tsx Aligned issue detail conversation fields with MR changes
Comments suppressed due to low confidence (3)

moon/apps/web/hooks/issues/useGetIssueDetail.ts:5

  • [nitpick] Type names should be PascalCase. Rename the conversations interface to Conversation to follow conventions.
interface conversations {

moon/apps/web/components/MrView/CloseItem.tsx:1

  • [nitpick] CloseItem and ReopenItem share identical structure except for props. Consider abstracting common layout into a single component to reduce duplication.
import { ConditionalWrap } from '@gitmono/ui'

moon/apps/web/pages/[org]/mr/[id].tsx:212

  • The “Checks” panel currently contains only placeholder text. Add the actual checks content or a TODO comment to clarify future work.
            <div>Checks</div>

Comment thread moon/apps/web/pages/[org]/mr/[id].tsx
Comment thread moon/apps/web/components/MrView/MRComment.tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 8, 2025
Merged via the queue into gitmono-dev:main with commit e8fbeee Jul 8, 2025
3 checks passed
yyk808 pushed a commit to yyk808/mega that referenced this pull request Jul 9, 2025
Co-authored-by: Quanyi Ma <eli@patch.sh>
@Ceron-CSS
Ceron-CSS deleted the card branch July 10, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants